namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Commands.SystemCommands
{
    public class DirectTestModeCommand : AciCommandBase
    {
        public const byte OpCode = 0x03;

        public byte DtmCommandMsb { get; set; }
        public byte DtmCommandLsb { get; set; }

        protected override void EncodeBuffer()
        {
            if (Error) return;

            EncodeBufferWithCommandHeader(OpCode, 2);
            EncodeHelper.SetByte(DtmCommandMsb);
            EncodeHelper.SetByte(DtmCommandLsb);
        }
    }
}
